<?php
class omeauto_view_helper{
    function modifier_mkname($string,$catentate_string,$key=""){
        $p = strpos($catentate_string,'[');
        if($p){
            $catentate_string_pre = substr($catentate_string,0,$p);
            $catentate_string_post = substr($catentate_string,$p);
            
            $string = "config[".$string."][".$key."]"."[".$catentate_string_pre."]".$catentate_string_post;
        }else{
            $string = "config[".$string."][".$key."]"."[".$catentate_string."]";
        }
        
        return $string;
    }
}